package com.devplatform.mapper.article;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.devplatform.pojo.article.ArticleInteractions;
import org.apache.ibatis.annotations.Param;

/**
 * @author Jnks03
 * @description 针对表【article_interactions】的数据库操作Mapper
 * @createDate 2025-09-29 09:51:53
 * @Entity com.devplatform.pojo.ArticleInteractionsController
 */
public interface ArticleInteractionsMapper extends BaseMapper<ArticleInteractions> {
    int incrementLikes(Long articleId);

    int decrementLikes(Long articleId);

    int incrementCollect(Long articleId);

    int decrementCollect(Long articleId);

    int incrementShare(Long articleId);

    int incrementComments(Long articleId);

    int decrementComments(Long articleId);

    void increaseArticlePoints(@Param("articleId") Long articleId, @Param("points") int points);


}




